home *** CD-ROM | disk | FTP | other *** search
/ The Best of Mecomp Multimedia 2 / MECOMP-CD-II.iso / amiga / tools / system / installerfx / examples / anim example 1 < prev    next >
Encoding:
Text File  |  1997-09-22  |  1.6 KB  |  105 lines

  1. ; InstallerFX script
  2. (if (= x 1) (welcome))
  3.  
  4. (onerror (CLEANUP))
  5.  
  6. ; Cleanup any temporary mess we created
  7. (procedure CLEANUP
  8.     ; Nothing to cleanup
  9.     (delete "t:Background")
  10.     (delete "t:Background.prefs")
  11.     (delete "t:InstallerAnim")
  12.     (delete "t:InstallerAnim.prefs")
  13. ) ; CLEANUP
  14.  
  15. (set @user-level 0)
  16.  
  17. ;(set Opt 3)
  18. ;(complete 0)
  19.  
  20. (copyfiles
  21.     (source "InstallerFX/Background_DARK")
  22.     (dest "t:")
  23.     (newname "Background")
  24. )
  25.  
  26. (copyfiles
  27.     (source "InstallerFX/Background.prefs")
  28.     (dest "t:")
  29.     (newname "Background.prefs")
  30. )
  31. (run "run InstallerFX/InstallerFX t:Background")
  32.  
  33. (copyfiles
  34.     (source "InstallerFX/TriumphLogo")
  35.     (dest "t:")
  36.     (newname "InstallerAnim")
  37. )
  38.  
  39. (copyfiles
  40.     (source "InstallerFX/TriumphLogo.prefs")
  41.     (dest "t:")
  42.     (newname "InstallerAnim.prefs")
  43. )
  44.  
  45.  
  46.  
  47. (set @user-level 2)
  48.  
  49. ;Get directory to install test to:
  50. (set destdir 
  51.     (askdir 
  52.         (prompt "In which drawer should testfiles be installed?") 
  53.         (help @askdir-help)
  54.         (default ("t:"))
  55.     )
  56. )
  57.  
  58. (run "run InstallerFX/InstallerFX t:InstallerAnim")
  59.  
  60. (complete 10)
  61.  
  62. (set installfiles
  63.     (askoptions
  64.         (prompt "Which of the following optional programs/helpfile should be installed ?")
  65.         (help @askoptions-help)
  66.         (choices "InstallerFX")
  67.         (default Opt)
  68.     )
  69. )
  70.  
  71. (complete 50)
  72.  
  73. ;Copy program files to destination.
  74.  
  75. (if (BITAND installfiles 1)
  76. (copyfiles
  77.     (source "InstallerFX")
  78.     (dest destdir)
  79.     (all)
  80. )
  81. )
  82.  
  83. (set installfiles
  84.     (askoptions
  85.         (prompt "Which of the following optional programs/helpfile should be installed ?")
  86.         (help @askoptions-help)
  87.         (choices "InstallerFX")
  88.         (default Opt)
  89.     )
  90. )
  91.  
  92.  
  93. (if (BITAND installfiles 1)
  94. (copyfiles
  95.     (source "InstallerFX")
  96.     (dest destdir)
  97.     (all)
  98. )    
  99. )
  100.  
  101. (complete 100)
  102.  
  103. (CLEANUP)
  104. (exit)
  105.